package com.sfac.java_spring_boot_02.modules.test.service;


import com.sfac.java_spring_boot_02.modules.common.entity.Result;
import com.sfac.java_spring_boot_02.modules.common.entity.SearchBean;
import com.sfac.java_spring_boot_02.modules.test.entity.Student;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @Description StudentService
 * @Author HymanHu
 * @Date 2021/9/14 14:57
 */
public interface StudentService {

    Result<Student> insertStudent(Student student);

    Result<Student> updateStudent(Student student);

    Result<Object> deleteStudentByStudentId(int studentId);

    Student getStudentByStudentId(int studentId);

    Student findTopByStudentNameAndEmail(String studentName, String email);

    Page<Student> getStudentsBySearchBean(SearchBean searchBean);

    List<Student> getStudentsByStudentNameOrEmail(String studentName, String email);
}
